﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static  void Main(string[] args)
        {
            string pictPath2 = @"H:\测试照片\城管\20250117\20250117093058804_AHWK16090001_非法摆摊_cs_巡检车3_商家非法摆摊_上报人B_2.jpg";
            int ii = pictPath2.LastIndexOf('\\');
            string s = pictPath2.Substring(ii+1, pictPath2.Length-ii-1);

            Console.WriteLine("Start");
            TestAsync();
            Console.WriteLine("Finish");
            
            Console.ReadLine();
        }


        static async Task TestAsync()
        {
            await DoSomethingAsync();
        }

        static async Task DoSomethingAsync()
        {
            await Task.Delay(1000); // 模拟异步操作，比如网络请求或磁盘I/O
            Console.WriteLine("Asynchronous operation completed.");
        }


    }
}
